
Joshua Dover 7/16/11

This is a template/reference for using the scripting "engine" portion of my program.

Syntax:

[x]	- commands
$	- beginning of argument list
^	- end of arguments list
`	- end of text argument

Specific syntaxes:

[End]	(no arguments)^
- ends script file

[Print] $ text` x y textR textG textB bgR bgG bgB^
- prints the text as specified and waits for a keypress.

[RunCycles] $ numberOfCycles ^
- runs a timer regulated number of update cycles

[GetInput] $ destinationBuffer echoX echoY ^
- gets keyboard input, storing it in the specified databuffer.

[PrintBuffer] $ buffer x y ^
- outputs contents of the buffer to the coordnates specified

[RunScript] $ filename ^
- runs the specified script file

[AddFrame] $ frame x y alpha ^
- adds the frame to be drawn when cycles are run

[AddAnimation] $ name x y loop ^
- adds the animation(if found) to be drawn when cycles are run

[FadeOut] $ numCycles ^
- fades out in x cycles

[LoadMap] $ mapName plrX plrY ^
- loads the map if possible and moves the player

[BoolChoice] $ text#yesScript#noScript# ^
- takes a 'Y' or 'N' keypress to determine next action

[Activate] $ name ^
- activates all objects with name

[Deactivate] $ name ^
- deactivates all objects with name

